package com.vhall.component.entity.interactive;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;


@Data
public class ListReqVo implements Serializable {
    private static final long serialVersionUID = -3156088090793355887L;

    @NotBlank(message = "room_id不能为空")
    @ParamName("room_id")
    @Pattern(regexp = "[0-9a-zA-Z_]{1,32}", message = "room_id参数错误")
    private String roomId;

    @ParamName("page")
    private Integer currPage;

    @ParamName("page_size")
    private Integer pageSize;

    @Range(max = 4, min = 0, message = "status取值为0、1、2、3、4")
    private Integer status;

    @Range(max = 2, min = 0, message = "role取值为0、1、2")
    private Integer role;

    @ParamName("start_time")
    private String startTime;

    @ParamName("end_time")
    private String endTime;

    @ParamName("is_show")
    @Range(max = 1, min = 0, message = "is_show取值为0或1")
    private Integer isShow;

    @ParamName("last_qid")
    private Integer lastQid;

    @Pattern(regexp = "(asc)|(desc)", message = "sort取值为asc或desc")
    private String sort;

    @Pattern(regexp = "(v1)|(v2)", message = "version取值为v1或v2")
    private String version;

    private Integer accountId;


}
